package summer_vacation.cullen.three10;

/**
 * Created by Cullen on 2015/8/13.
 */
public class N35 {
    public static void main(String[] args) {
        int a,b,c,d;
        for (int i=1000;i<1112;i++){
            a=i%10;
            b=((i%100)-a)/10;
            c=((i%1000)-b-a)/100;
            d=(i-a-b-c)/1000;
            if (i*9==(a*1000+b*100+c*10+d)){
                System.out.print(i);
            }
        }
    }
}
